﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DoctorReg
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            toolStripStatusLabel1.Text = System.DateTime.Now.ToString();
        }

        private void consultarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormMedicos form = new FormMedicos();
            form.MdiParent = this;
            form.Show();

        }

        private void consultarToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FormPacientes form = new FormPacientes();
            form.MdiParent = this;
            form.Show();
        }

        private void consultarToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            FormConsultas form = new FormConsultas();
            form.MdiParent = this;
            form.Show();
        }

        private void adicionarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormMedicos2 form = new FormMedicos2();
            form.MdiParent = this;
            form.Show();
            form.Adicionar();

        }

        private void adicionarToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FormPacientes2 form = new FormPacientes2();
            form.MdiParent = this;
            form.Show();
            form.Adicionar();
        }

        private void adicionarToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            FormConsultas2 form = new FormConsultas2();
            form.MdiParent = this;
            form.Show();
            form.Adicionar();

        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void toolStripStatusLabel1_Click(object sender, EventArgs e)
        {

        }
    }
}
